/**
 * @file 公共请求的url
 * @author wangshaozhi(wangshaozhi@baidu.com)
 */

/** 公共前缀url */
const BASE_URL = 'http://152.136.107.66:7001/admin';
// const BASE_URL = 'http://localhost:7001/admin';

/** 查询文章列表url */
const ARTICLE_LIST_URL = `${BASE_URL}/article/list`;

/** 删除文章url */
const DELETE_ARTICLE_URL = `${BASE_URL}/article/delete`;

/** 根据文章id获取文章 */
const ARTICLE_DETAIL_URL = `${BASE_URL}/article/detail`;

/** 获取文章类别 */
const ARTICLE_TYPES_URL = `${BASE_URL}/article/types`;

/** 添加文章url */
const ADD_ARTICLE_URL = `${BASE_URL}/article/add`;

/** 发布文章url */
const PUBLISH_ARTICLE_URL = `${BASE_URL}/article/publish`;

/** 注册url */
const REGISTER_URL = `${BASE_URL}/user/register`;

/** 登录url */
const LOGIN_URL = `${BASE_URL}/user/login`;

export {
    BASE_URL,
    ARTICLE_LIST_URL,
    ARTICLE_DETAIL_URL,
    ARTICLE_TYPES_URL,
    DELETE_ARTICLE_URL,
    PUBLISH_ARTICLE_URL,
    ADD_ARTICLE_URL,
    REGISTER_URL,
    LOGIN_URL
};